/* This file is an example of the needed GAMESTRU.H which must reside in the
    development directory
*/

/* This file contains information that is needed by the GAMESDK also.

    Specifically, the player structure, player and opponent def's and size.
*/


#ifndef _GAMESTRU_H
#define _GAMESTRU_H

#ifdef  EXTDRIVER
#define     EXT /* */
#else
#define     EXT extern
#endif

// These are also defined in GAC_WH.H
#define MAX_PLAYERS 4
#define MAX_PIECES  4

// Structure to hold all info about a player (should be player)
struct player
{
 // Variables used by the GAME SDK (Must be in the following order in
 // the strucutre for the Lists to work correctly...

    char names[21]; // The players handle
    char real_names[51];  // The real name
    int bbs;  // bbs number for this player
    int laston;  //last day on
    unsigned long money; // the score for the player (I know...)
    int account;  // not stored in the files...

 // Variables used for this game
    // enough room to store the player positions on the board (4pieces/player)
    char locations[MAX_PLAYERS][MAX_PIECES];
    char playerColor; // what color is the player...

    int gameswon;   // number of games user has won
    int games;      // number of games user has played total
    int gamesToday; // number of games user has played today (sysop max)
    char savegame;  // did the player save a game?


    char unused[20]; // some unused space so we can add to it later on...

};
EXT struct player  player, opponent;

// Use some number defines (old record length is record + unused - 2 account)
#define RECORD_LENGTH sizeof( struct player )
#define RECORD_UNUSED 0L

#endif
